package com.ruoyi.law.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.law.domain.dto.LawOrderDTO;
import com.ruoyi.law.domain.entity.LawOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 律师订单 Mapper 接口
 * </p>
 *
 * @author code
 * @since 2022-11-27
 */
@Repository
public interface LawOrderMapper extends BaseMapper<LawOrder> {

    /**
     * 我的分页
     *
     * @param toPage      分页参数
     * @param lawOrderDTO 查询参数
     * @return {@link Page}<{@link LawOrderDTO}>
     */
    Page<LawOrderDTO> myPage(Page<LawOrderDTO> toPage, @Param("lawOrderDTO") LawOrderDTO lawOrderDTO);
}
